-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anim speed #228
Anim speed #228
Conversation
xml_converter/intigration_tests/inputs/xml_animation_speed/xml_file.xml
Outdated
Show resolved
Hide resolved
name="animation_speed", | ||
xml_input_paths=["./inputs/xml_animation_speed"], | ||
expected_output_xml_path="./expected_outputs/xml_animation_speed", | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where are the proto testcases?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in the top comment, the proto will be changed by #151. I didn't want to add an incorrect proto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just change the proto here? Now seems like as good of a time as any to avoid it being forgotten.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Full Diff
--- xml_converter/intigration_tests/expected_outputs/proto_animation_speed/markers.bin.textproto._old 2023-12-03 21:09:20.738595640 +0000
+++ xml_converter/intigration_tests/expected_outputs/proto_animation_speed/markers.bin.textproto._new 2023-12-03 21:09:20.746595627 +0000
@@ -0,0 +1,35 @@
+category {
+ name: "My Category"
+ trail {
+ }
+ trail {
+ }
+ trail {
+ animation_speed: 3.14
+ }
+ trail {
+ animation_speed: 123.456
+ }
+ trail {
+ }
+ trail {
+ }
+ trail {
+ animation_speed: 3.14
+ }
+ trail {
+ animation_speed: 123.456
+ }
+ trail {
+ animation_speed: -3.14
+ }
+ trail {
+ animation_speed: -123.456
+ }
+ trail {
+ animation_speed: -3.14
+ }
+ trail {
+ animation_speed: -123.456
+ }
+}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Full Diff
--- xml_converter/intigration_tests/expected_outputs/proto_animation_speed/markers.bin.textproto._old 2023-12-03 21:10:27.535470994 +0000
+++ xml_converter/intigration_tests/expected_outputs/proto_animation_speed/markers.bin.textproto._new 2023-12-03 21:10:27.543471044 +0000
@@ -0,0 +1,35 @@
+category {
+ name: "My Category"
+ trail {
+ }
+ trail {
+ }
+ trail {
+ animation_speed: 3.14
+ }
+ trail {
+ animation_speed: 123.456
+ }
+ trail {
+ }
+ trail {
+ }
+ trail {
+ animation_speed: 3.14
+ }
+ trail {
+ animation_speed: 123.456
+ }
+ trail {
+ animation_speed: -3.14
+ }
+ trail {
+ animation_speed: -123.456
+ }
+ trail {
+ animation_speed: -3.14
+ }
+ trail {
+ animation_speed: -123.456
+ }
+}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Full Diff
--- xml_converter/intigration_tests/expected_outputs/proto_animation_speed/markers.bin.textproto._old 2023-12-04 03:28:00.138085994 +0000
+++ xml_converter/intigration_tests/expected_outputs/proto_animation_speed/markers.bin.textproto._new 2023-12-04 03:28:00.146085948 +0000
@@ -0,0 +1,179 @@
+category {
+ name: "My Category"
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: 3.14
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: 123.456
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: 3.14
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: 123.456
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: -3.14
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: -123.456
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: -3.14
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: -123.456
+ }
+}
As discussed, I am going to change the default to 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Full Diff
--- xml_converter/intigration_tests/expected_outputs/proto_animation_speed/markers.bin.textproto._old 2023-12-05 02:08:49.831166946 +0000
+++ xml_converter/intigration_tests/expected_outputs/proto_animation_speed/markers.bin.textproto._new 2023-12-05 02:08:49.839166935 +0000
@@ -0,0 +1,181 @@
+category {
+ name: "My Category"
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: 1
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: 3.14
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: 123.456
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: 1
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: 3.14
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: 123.456
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: -3.14
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: -123.456
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: -3.14
+ }
+ trail {
+ map_id: 50
+ trail_data {
+ points_x: 1
+ points_x: 2
+ points_x: 3
+ points_y: 4
+ points_y: 5
+ points_y: 6
+ points_z: 7
+ points_z: 8
+ points_z: 9
+ }
+ animation_speed: -123.456
+ }
+}
The protobin is not added here as it will be changed by #151